﻿#include <QMainWindow>

class QAction;
class QMenu;
class QUndoStack;
class QUndoView;

class GraphicsScene;
class GraphicsItem;

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    MainWindow();
    ~MainWindow();

private slots:
    void addBox();

private:
    void createActions();
    void createMenus();
    void createUndoView();

private:
    QAction *m_pAddBoxAction;
    QAction *m_pUndoAction;
    QAction *m_pRedoAction;

    QMenu *m_pEditMenu;
    QMenu *m_pItemMenu;

    GraphicsScene *m_pScene;
    QUndoStack *m_pUndoStack;
    QUndoView *m_pUndoView;

};
